package com.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.consumer.feignclient.IServiceProvider;

@RestController
public class TestController {

	@Autowired
	private IServiceProvider provider;

	@GetMapping("/api/consumer")
	public String test() {
		return "hi,this is consumer test";
	}

	@GetMapping("/api/consumer/test/provider")
	public String testProvider() {
		return provider.test();
	}

}
